package com.sharemarking.wa.platform.controller;

import com.sharemarking.wa.common.ResponseParams;
import com.sharemarking.wa.platform.service.MessageService;
import com.sharemarking.wa.platform.service.MonthlyStatementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dxy
 */
@RestController
@RequestMapping(value = "message")
public class MessageController {

    @Autowired
    MessageService messageService;


    /**
     * 获取消息内容
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "getMessageContent")
    public ResponseParams<?> getMessageContent() throws Exception {
        return messageService.getMessageContent();
    }

    /**
     * 获取消息列表
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "getMessageList")
    public ResponseParams<?> getMessageList() throws Exception {
        return messageService.getMessageList();
    }
    /**
     * 删除消息列表
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "deleteMessageList")
    public ResponseParams deleteMessageList() throws Exception{
       return messageService.deleteMessageList();
    }

    /**
     * 获取消息列表
     * @return
     * @throws Exception
     */
//    @RequestMapping(value = "removeAllMessage")
//    public ResponseParams<?> removeAllMessage() throws Exception {
//        return messageService.removeAllMessage();
//    }

}
